package com.example.test01;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;


public class MainActivity extends Activity {

	private static final String TAG = "TEST01";
	private Button main_button;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		Log.v(TAG, "VERBOSE");
		Log.d(TAG, "DEBUG");
		Log.i(TAG, "INFO");
		Log.w(TAG, "WARN");
		Log.e(TAG, "ERRO");
		TextView textView = (TextView) findViewById(R.id.textView1);
		textView.setBackgroundColor(Color.BLUE);
		textView.setTextColor(Color.RED);
		textView.setTextSize(20);
		textView.setText("hello??");
		
//		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
//	        // For the main activity, make sure the app icon in the action bar
//	        // does not behave as a button
//	        ActionBar actionBar = getActionBar();
//	        actionBar.setHomeButtonEnabled(false);
//	    }
		main_button = (Button)findViewById(R.id.button1);
		main_button.setOnClickListener(new Button.OnClickListener(){
			public void onClick(View v){
				Intent intent = new Intent();
				intent.setClass(MainActivity.this, Activity01.class);
				startActivity(intent);
				finish();
			}
		});
	}

	
//	@Override
//	public boolean onCreateOptionsMenu(Menu menu) {
//		// Inflate the menu; this adds items to the action bar if it is present.
//		getMenuInflater().inflate(R.menu.activity_main, menu);
//		return true;
//	}

}
